package com.jic.order.api;

import com.alibaba.fastjson.JSONObject;
import com.jic.common.base.vo.RestResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * name要调用的服务,这里相当于声明http地址, 比如预下单:http://.../feign/pay/prePayOrder
 */
@FeignClient(name = "jic-interaction", path = "/feign/pay")
public interface PayOrderToInteractionApi {
    /**
     * 预下单
     * @param
     * @return
     */
    @PostMapping("/prePayOrder")
    RestResult<JSONObject> prePayOrder(@RequestBody JSONObject jsonObject);

    /**
     * 获取卡密
     * @param jsonObject
     * @return
     */
    @PostMapping("/getPwdFactor")
    RestResult<JSONObject> getPwdFactor(@RequestBody JSONObject jsonObject);

    /**
     * 预下单查询
     * @param
     * @return
     */
    @PostMapping("/prePayOrderCheck")
    RestResult<JSONObject> prePayOrderCheck(@RequestBody JSONObject jsonObject);
    /**
     * 微众支付
     * @param
     * @return
     */
    @PostMapping("/wzPay")
    RestResult<JSONObject> wzPay(@RequestBody JSONObject jsonObject);
    /**
     * 微众支付回查
     * @param
     * @return
     */
    @PostMapping("/wzPayCheck")
    RestResult<JSONObject> wzPayCheck(@RequestBody JSONObject jsonObject);

    /**
     * 微众退款
     * @param
     * @return
     */
    @PostMapping("/refundOrder")
    RestResult<JSONObject> refundOrder(@RequestBody JSONObject jsonObject);


    /**
     * 微众退款查询
     * @param
     * @return
     */
    @PostMapping("/refundOrderCheck")
    RestResult<JSONObject> refundOrderCheck(@RequestBody JSONObject jsonObject);

    /**
     * 微信支付
     * @param
     * @return
     */
    @PostMapping("/wxPay")
    RestResult<JSONObject> wxPay(@RequestBody JSONObject jsonObject);

}
